package com.catbad.services.impl;

import com.catbad.domain.Area;
import com.catbad.mapper.AreaMapper;
import com.catbad.services.AreaServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServicesImpl implements AreaServices {
    @Autowired
    private AreaMapper areaMapper;
    //一级地区下拉列表显示
    @Override
    public List<Area> selectArea1() {
        //数据库查询市级信息
        return areaMapper.selectArea1();
    }
    //二级地区的下拉列表数据
    @Override
    public List<Area> selectArea2(Integer pid) {
        return areaMapper.selectArea2(pid);
    }
}
